<%@ page import="com.wanmait.recruitment.util.RelativeDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="container">
    <div class="sidebar">
        <a class="btn_create" href="
        <c:if test="${company.opened}">${pageContext.request.contextPath}/zhuang/company/create</c:if>
        <c:if test="${!company.opened}">/zhuang/company/openstep1</c:if>
        ">发布新职位</a>
        <dl class="company_center_aside">
            <dt>我收到的简历</dt>
            <dd >
                <a class="btma" href="${pageContext.request.contextPath}/zhuang/company/pending">收到的简历</a>
            </dd>
            <dd >
                <a class="btma2" href="${pageContext.request.contextPath}/zhuang/company/canInterviewResumes">待定简历</a>
            </dd>
            <dd>
                <a class="btma3" href="${pageContext.request.contextPath}/zhuang/company/haveNoticeResumes">已通知面试简历</a>
            </dd>
            <dd>
                <a class="btma4" href="${pageContext.request.contextPath}/zhuang/company/haveRefuseResumes">不合适简历</a>
            </dd>
            <dd>
                <a class="btma5" href="${pageContext.request.contextPath}/zhuang/company/autoFilterResumes">自动过滤简历</a>
            </dd>
        </dl>
        <dl class="company_center_aside">
            <dt>我发布的职位</dt>
            <dd>
                <a class="btma6" href="${pageContext.request.contextPath}/zhuang/company/positions">有效职位</a>
            </dd>
            <dd>
                <a class="btma7" href="${pageContext.request.contextPath}/zhuang/company/offline">已下线职位</a>
            </dd>
        </dl>
        <div >

        </div>
        <div>

        </div>
    </div>

<script>
$(function () {
    var url = document.URL;
    if (url=="http://localhost:8080/zhuang/company/pending")
    {
        $(".btma").parent().css("background","#91cebe");
    }
    if (url=="http://localhost:8080/zhuang/company/canInterviewResumes")
    {
        $(".btma2").parent().css("background","#91cebe");
    }
    if (url=="http://localhost:8080/zhuang/company/haveNoticeResumes")
    {
        $(".btma3").parent().css("background","#91cebe");
    }
    if (url=="http://localhost:8080/zhuang/company/haveRefuseResumes")
    {
        $(".btma4").parent().css("background","#91cebe");
    }
    if (url=="http://localhost:8080/zhuang/company/autoFilterResumes")
    {
        $(".btma5").parent().css("background","#91cebe");
    }
    if (url=="http://localhost:8080/zhuang/company/positions")
    {
        $(".btma6").parent().css("background","#91cebe");
    }
    if (url=="http://localhost:8080/zhuang/company/offline")
    {
        $(".btma7").parent().css("background","#91cebe");
    }
});
</script>
